<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>


<div class="box  no-border">
	<table class="form-table">
		<tr>
			<td colspan="4">
				<div class="header">
					<h3>申报人信息</h3>
				</div></td>
		</tr>
		<tr>
			<td class="td1">申报人：</td>
			<td class="td2"><label style="font-weight: 700;font-size: 14px">${cusUser.fullname}</label>
				<c:choose>
					<c:when test="${cusUser.sex eq '男' }">
						<img src='img/icons/packs/fugue/24x24/user-business.png' alt="男">
					</c:when>
					<c:when test="${cusUser.sex eq '女' }">
						<img src='img/icons/packs/fugue/24x24/user-female.png' alt="女">
					</c:when>
					<c:otherwise>
					</c:otherwise>
				</c:choose></td>
			<td class="td1">电话：</td>
			<td class="td2">${cusUser.mobile}<c:if
					test="${not empty cusUser.tel}">/${cusUser.tel}</c:if>
			</td>
		</tr>

		<tr>
			<td class="td1">所属客户：</td>
			<td class="td2">${cusUser.customer_name}</td>
			<td class="td1">用户类型：</td>
			<td class="td2" col><c:choose>
					<c:when test="${cusUser.type eq 'VIP' }">
						<label style="color:red">VIP</label>
					</c:when>
					<c:otherwise>
						<label>${cusUser.type}</label>
					</c:otherwise>
				</c:choose>|&nbsp;${cusUser.position}</td>


		</tr>
		<tr>

			<td class="td1">所在部门：</td>
			<td class="td2">${cusUser.department_treenode_name_path}</td>
			<td class="td1">邮件：</td>
			<td class="td2">${cusUser.email}</td>

		</tr>
		<tr>

			<td class="td1">联系人：</td>
			<td class="td2">${model.linkmanName}</td>
			<td class="td1">联系电话：</td>
			<td class="td2">${model.linkmanPhone}</td>
		</tr>
		<c:if test="${not empty model.areaDetail }">
			<tr>
				<td class="td1">服务地址：</td>
				<td class="td2" colspan="3">${model.areaDetail}</td>
			</tr>
		</c:if>
		<tr>
			<td colspan="4">
				<div class="header">
					<h3>事件信息</h3>

				</div></td>
		</tr>

		<tr>
			<td class="td1">事件编号：</td>
			<td class="td2">${model.code}</td>

			<td class="td1">创建人：</td>
			<td class="td2">${model.creatorName}</td>

		</tr>
		<tr>
			<td class="td1">来源：</td>
			<td class="td2">${model.source}</td>

			</td>
			<td class="td1">创建时间：</td>
			<td class="td2"><fmt:formatDate value="${model.createDate}"
					pattern="yyyy-MM-dd HH:mm" />
			</td>
		</tr>

		<tr>
			<td class="td1">事件性质：</td>
			<td class="td2">${model.incidentType }</td>
			<td class="td1">发生时间：</td>
			<td class="td2"><fmt:formatDate value="${model.happenTime}"
					pattern="yyyy-MM-dd HH:mm" />
		</tr>
		<tr>

			<td class="td1">发生频率：</td>
			<td class="td2" colspan="3">${model.occurrenceFrequency}</td>



			<%-- <td class="td1">期望完成时间：</td>
			<td class="td2"><fmt:formatDate value="${model.expectTime}"
					pattern="yyyy-MM-dd" /></td> --%>

		</tr>

		<tr>
			<td class="td1">事件标题：</td>
			<td class="td2" colspan="3">${model.title}</td>
			</td>
		</tr>
		<tr>
			<td class="td1">事件描述：</td>
			<td class="td2" colspan="3"><label><pre>${model.description}</pre>
			</label> <c:if test="${model.source eq '邮件' }">
					<a href="javascript:void(0)" onclick="viewMail()"><br>查看原邮件内容</a>

				</c:if></td>

		</tr>
		<tr>
			<td class="td1">服务目录：</td>
			<td class="td2"><isperp:relationLabel id="serviceCategoryId"
					idValue="${model.serviceCategoryId }" displayColumn="name"
					moduleUrl="serviceCatalog/service"></isperp:relationLabel>
			</td>
			<td class="td1">关联项目：</td>
			<td class="td2"><isperp:relationLabel id="lbProjectId"
					idValue="${model.projectId }" displayColumn="name"
					moduleUrl="project/project"></isperp:relationLabel>
			</td>

		</tr>
		<%-- <tr>
			<td class="td1">关联资产：</td>
			<td class="td2" colspan="3">
			  <isperp:relationLabel viewUrl="configuration/ci/edit?readonly=true" moduleUrl="configuration/ci" idValue="${model.ciId }" displayColumn="name" id="relationCiId"></isperp:relationLabel>
			</td>
		</tr> --%>
		<tr>
			<td class="td1">附件：</td>
			<td class="td2" colspan="3"><isperp:uploader
					sourceId="${model.id }" id="incidentFiles" readonly="true"></isperp:uploader>
			</td>
		</tr>



	</table>
</div>
<script type="text/javascript">
	function viewMail() {
		var id = '${model.id}';
		isperp.openDialog({
			windowSize : "normal",
			contentUrl : "incident/incident/viewMail?id=${model.id}"
		});
	}
</script>
